<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<p id="p1">sssss</p>
	</body>
	<script>
		var x = navigator;
		var w = window.innerWidth ||
			document.documentElement.clientWidth ||
			document.body.clientWidth;
		var h = window.innerHeight ||
			document.documentElement.clientHeight ||
			document.body.clientHeight;
		document.getElementById("p1").innerHTML = "<b>屏幕分辨率:</b>" + screen.width + "*" + screen.height + "<b>内部窗口</b>:" + w + "*" + h
	</script>

</html>